{% extends "common/default.html" %}
{% block common %}
    <div>
                <div class="col-md-6">
                    <form action="../teacher_search" method="post">

                        <div class="input-group" style="width: 300px">
                            <input type="text" class="form-control" name="content" placeholder="请输入要查询的课程名称...">
                            <span class="input-group-btn">
		        <button class="btn btn-default" type="submit"><span
                        class="glyphicon glyphicon-search"></span>&nbsp;查询</button>
		      </span>
                        </div>
                    </form>
                </div>
    <div>
        <table class="table table-hover  table-bordered table-striped" style="margin-bottom: 0px;">
            <tr>
                <th>序号</th>
                <th>课程名称</th>
                <th>学分</th>
                <th>授课老师</th>
                <th>开始周</th>
                <th>结束周</th>
                <th>详情</th>
            </tr>
            {% for course in courses %}
                <tr>
                    <td>{{ course.id }}</td>
                    <td>{{ course.courseName }}</td>
                    <td>{{ course.credit }}</td>
                    <td>{{ course.teacherId.trueName }}</td>
                    <td>{{ course.startTime }}</td>
                    <td>{{ course.endTime }}</td>
                     <td><a href="../info/?data_id=course_{{ course.id }}">点击查看</a></td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}


